<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="root">
    <Fx></Fx>
  </div>
  <script src="./js/vue.js"></script>
  <script>

    const Child = {
      template: `<div>你好世界</div>`
    }

    // 组件标签名和使用一致
    Vue.component('Fx', {
      // vue提供 创建虚拟dom
      render: h => h(Child)
    })

    new Vue({
      el: '#root'
    })
  </script>
</body>

</html>